<template>
  <div class="home">
   
    <Hot :list='list'></Hot>
    <CovNumber :data="data"></CovNumber>
  </div>
</template>

<script>
import Hot from './Hot.vue'
import CovNumber from './CovNumber.vue'
export default {
  data(){
      return{
        list:[],
        data:{},
      }
  },
  name: 'HomeView',
  components:{
    Hot,
    CovNumber
  },
  created(){
     this.httpCovInfo()
  },
  methods:{
    httpCovInfo(){
       this.$api.getCovInfo().then(res=>{
      console.log(res.data.result.desc);
      this.list=res.data.result.news;
      this.data=res.data.result.desc
    })
    }
  }

}
</script>


